﻿#ifndef EPIBOLY_H
#define EPIBOLY_H

#include <QDialog>
#include "env.h"
#include "optioneditor.h"

namespace Ui {
class Epiboly;
}

class Epiboly : public QDialog
{
    Q_OBJECT

public:
    explicit Epiboly(QWidget *parent = 0);
    ~Epiboly();

    bool init();
    bool saveRecord();
    void updateView();

private slots:
    void on_btn_add_clicked();
    void on_btn_submit_clicked();
    void reload(const OptionType &type);

    void on_contractor_currentTextChanged(const QString &text);

private:
    Ui::Epiboly *ui;
    OptionHandler option;

    QString batch;
    QString contractor;
    QString job;
    QString remark;

    QString name,number;

    QSqlQueryModel *model;
};

#endif // EPIBOLY_H
